package com.spingweb.dto;

/**
 * 用户对象，非常重要的实体类。
 */
public class User {

    Long id;
    String pwd;   // 密码要加密，注意一下。
    String name;
    String phoneNumber;
    String place;

    //空构造器也有用
    public User() {
    }

    public User(String pwd, String name) {
        this.pwd = pwd;
        this.name = name;

    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getPlace() {
        return place;
    }

    public void setPlace(String place) {
        this.place = place;
    }
}